package fr.ralmn.OgameDroid.Object;

/**
 * 
 * @author ralmn
 * @see Batiment
 * 
 * 
 * */
public class Central extends Batiment {

	/**
	 * @see Central
	 * @author ralmn Type de la central
	 * 
	 * 
	 */
	public static enum CentralType {
		Solaire, Fusion, Sattelite
	}

	private CentralType type;

	public Central(String n, String d, CentralType t, int i) {
		super(n, d, i);
		type = t;
		super.type = BatimentsType.Batiments;
	}

	@Override
	public int getCoastMetal(int lvl) {
		return (int) (75 * Math.pow(1.5, lvl - 1));
	}

	@Override
	public int getCoastCristal(int lvl) {
		return (int) (30 * Math.pow(1.5, lvl - 1));
	}

	@Override
	public int getCoastDeterium(int lvl) {

		return super.getCoastDeterium(lvl);
	}

	public int getProduction(int lvl) {
		int p = (int) (20 * lvl * Math.pow(1.1, lvl));
		return p;
	}

	/**
	 * @return Type de la central
	 */
	public CentralType getType() {
		return type;
	}

}
